package com.zsd.android.common.retrofit

class ApiException(throwable: Throwable) : Exception(throwable) {

    var code: Int
        set(value) {
            this.code = value
        }
        get() = code

    var msg: String
        set(value) {
            this.msg = value
        }
        get() = msg

    constructor(throwable: Throwable, code: Int) : this(throwable) {
        this.code = code
    }

    constructor(throwable: Throwable, code: Int, msg: String) : this(throwable) {
        this.code = code
        this.msg = msg
    }
}